import request from "@/util/request";

// 前往支付页面;购物车、产品详情前往支付;生成订单去审核；
export const toPay = (data) =>{
    return request({
        url: '/applet/trade/toPay',
        method: 'post',
        data
    })
}


// 进行支付
export const payOrder = (data) =>{
    return request({
        url: '/applet/trade/payOrder',
        method: 'post',
        data
    })
}

//货币充值
export const paydataCoin=()=>{
	return request({
	    url: '/applet/trade/dataCoin/recharge',
	    method: 'post',		
	})
}

// 订单审核
export const isAudit = (data) =>{
    return request({
        url: '/applet/trade/order/audit',
        method: 'post',
        data
    })
}

// 获取订单列表
export const getOrderList = (query) =>{
    return request({
        url: '/applet/tradeOrder/list',
        method: 'get',
        params:query
    })
}


// 提交订单审核
export const orderSubmit = (data) =>{
    return request({
        url: '/applet/trade/order/submit',
        method: 'post',
        data
    })
}

